package cn.gson.boot.model.dao;

import cn.gson.boot.model.pojos.Quotation;
import cn.gson.boot.model.pojos.Quotationdetails;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/*报价详情*/
public interface HTBaoJiaDanMingXiDao extends CrudRepository<Quotationdetails,Integer> {
    //根据报价单id查询报价明细
    @Query(nativeQuery = true,value = "select * from quotationdetails_ where Quotation_Id = ?1")
    public List<Quotationdetails> selectBaoJiaMingXi(Integer baojiaId);

}
